package day13.XianCheng;

import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;

public class Lian03 {
    public static void main(String[] args) throws ExecutionException, InterruptedException {
        Lian03Mycallable mc = new Lian03Mycallable();
        FutureTask<String> ft = new FutureTask<>(mc);
        Thread s1 = new Thread(ft);
        s1.start();
        String s = ft.get();
        System.out.println(s);
    }
}
